package com.project.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
@Data
@ApiModel(value = "用户搜索记录")
@TableName(value = "cms_user_search_records")
@Table(name = "cms_user_search_records", comment = "用户搜索记录")
public class CmsUserSearchRecords implements Serializable {
    /**
     * 记录ID
     */
    @TableId
    @ApiModelProperty(value = "记录ID")
    @Column(type= MySqlTypeConstant.BIGINT, comment = "记录ID", length = 11, isKey = true, isAutoIncrement = true,isNull = false)
    private Long recordsId;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    @Column(comment = "用户ID")
    private Long baseUserId;

    /**
     * 搜索内容
     */
    @ApiModelProperty(value = "搜索内容")
    @Column(comment = "搜索内容")
    private String searchContent;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @Column(comment = "创建时间", type = MySqlTypeConstant.DATETIME)
    private Date createTime;

    private static final long serialVersionUID = 1L;

}